home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Developer & Web Development Tools / Twistpad 1.64 / Setup.exe / $APPDATA / Carthago / Twistpad / Syntax / pascal.sdf < prev    next >
Text File  |  2007-09-21  |  3KB  |  199 lines

  1. ;Object Pascal Syntax highlight Script for Twistpad
  2. ;1998 - 2007 ⌐ Carthago Software
  3.  
  4. [::Header::]
  5. SyntaxName=Object Pascal
  6. Extensions=pas;dpr;ops;~pas;inc
  7. Functions=(?i)^(function|procedure|constructor|destructor)(.*$)
  8. FunctionSubs=$2
  9. ;Spell nothing
  10. Spelling=0
  11. ;Except when a word is in this Contexts:
  12. SpellingContexts=1;2
  13. CommentChar=//
  14. Brackets=({[
  15.  
  16. [Compdirectives]
  17. Type=StartStop
  18. Context=7
  19. Priority=10
  20. Scope=0
  21. WholeWordOnly=0
  22. First={$
  23. Last=}
  24. Background=Default
  25. Foreground=0000FF
  26. italic=1
  27.  
  28. ;****************** Comments ************************
  29. [Comment1]
  30. Type=StartStop
  31. Context=1
  32. Priority=10
  33. Scope=0
  34. WholeWordOnly=0
  35. First={
  36. Last=}
  37. Background=Default
  38. Foreground=008000
  39. italic=1
  40. Outline=1
  41.  
  42. [Comment2]
  43. Type=StartStop
  44. Context=1
  45. Scope=0
  46. Priority=10
  47. WholeWordOnly=0
  48. First=//
  49. Last=
  50. Background=Default
  51. Foreground=008000
  52. italic=1
  53.  
  54. [Comment3]
  55. Type=StartStop
  56. Context=1
  57. Scope=0
  58. Priority=10
  59. WholeWordOnly=0
  60. First=(*
  61. Last=*)
  62. Background=Default
  63. Foreground=008000
  64. italic=1
  65. Outline=1
  66.  
  67. ;****************** End Comments ************************
  68.  
  69. [Quote]
  70. Type=StartStop
  71. Context=2
  72. Scope=0
  73. Priority=10
  74. WholeWordOnly=0
  75. First='
  76. Last='
  77. Background=Default
  78. Foreground=408080
  79.  
  80. [ASM]
  81. Type=StartStop
  82. Context=3
  83. Scope=0
  84. Priority=9
  85. WholeWordOnly=1
  86. First=asm
  87. Last=end
  88. Background=F9F9F9
  89. Foreground=5B5B5B
  90. Outline=1
  91.  
  92. [BE1]
  93. Type=StartStop
  94. Context=6
  95. Priority=5
  96. Scope=0
  97. WholeWordOnly=1
  98. First=begin
  99. Last=End
  100. Background=default
  101. Foreground=default
  102. italic=0
  103. Outline=1
  104. smart=1
  105.  
  106. [BE2]
  107. Type=StartStop
  108. Context=6
  109. Priority=5
  110. Scope=0
  111. WholeWordOnly=1
  112. First=case
  113. Last=End
  114. Background=default
  115. Foreground=default
  116. italic=0
  117. Outline=1
  118. smart=1
  119.  
  120. [BE3]
  121. Type=StartStop
  122. Context=6
  123. Priority=5
  124. Scope=0
  125. WholeWordOnly=1
  126. First=Try
  127. Last=End
  128. Background=default
  129. Foreground=default
  130. italic=0
  131. Outline=1
  132. smart=1
  133.  
  134. [BE4]
  135. Type=StartStop
  136. Context=6
  137. Priority=5
  138. Scope=0
  139. WholeWordOnly=1
  140. First=interface
  141. Last=implementation
  142. Background=default
  143. Foreground=default
  144. italic=0
  145. Outline=1
  146. BeginParagraph=1
  147. smart=1
  148.  
  149. [Pascal Keyword]
  150. Type=keyword
  151. Context=101
  152. Scope=0
  153. Priority=6
  154. WholeWordOnly=1
  155. Keyword1=
  156. Keyword2=do;if;of;to;or;begin;end
  157. Keyword3=for;new;nil;set;var;try;on;raise;not;and
  158. Keyword4=byte;case;char;else;exit;file;goto;halt;real;then;type;unit;uses;with;word
  159. Keyword5=array;class;const;label;until;while;finally;read;write
  160. Keyword6=downto;inline;object;public;record;repeat;string;except
  161. Keyword7=boolean;integer;longint;pointer;private;program;out
  162. Keyword8=function;shortint;property;override;exports
  163. Keyword9=interface;otherwise;procedure;protected;published;inherited
  164. Keyword10=destructor;initialization;library;external;mod;packed
  165. Keyword11=constructor;finalization;virtual;abstract
  166. Keyword12=
  167. Keyword13=
  168. Keyword14=implementation
  169. Keyword15=
  170. Keyword16=
  171. Background=Default
  172. Foreground=0000FF
  173. Bold=0
  174.  
  175. [Assembler Registers]
  176. Type=keyword
  177. Context=102
  178. Scope=3
  179. Priority=9
  180. WholeWordOnly=1
  181. Keyword1=EAX;EBX;ECX;EDX;ESI;EDI;EBP;ESP;EIP;FS;GS;AX;AL;AH;BX;BL;BH;CX;CL;CH;DX;DL;DH;ES;DS;CS;SP;SS;BP;IP;SI;DI
  182. Keyword2=
  183. Keyword3=
  184. Keyword4=
  185. Keyword5=
  186. Keyword6=
  187. Keyword7=
  188. Keyword8=
  189. Keyword9=
  190. Keyword10=
  191. Keyword11=
  192. Keyword12=
  193. Keyword13=
  194. Keyword14=
  195. Keyword15=
  196. Keyword16=
  197. Background=F9F9F9
  198. Foreground=FF8000
  199.